﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Music.Master" Inherits="System.Web.Mvc.ViewPage<music.Models.AlbumViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    BrowseAlbum
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        Genre :<%=Model.Genre.Name %>
    </h3>
    <br />
    <table>
        <tr>
            <td>
                Title
            </td>
            <td>
                Price
            </td>
            <td>
                Preview
            </td>
        </tr>
        <%
            foreach (var album in Model.Albums)
            {
        %>
        <tr>
            <td>
                <%:album.Title%>
            </td>
            <td>
                <%:album.Price%>
            </td>
            <td>
                <img src="<%:album.AlbumArtUrl%>" />
            </td>
        </tr>
        <%
            }
        %>
    </table>
</asp:Content>
